package com.xrc;

public class Calc {
    //成员变量
    String name;
    String version;
    String power;
    double price;
    //int a，int b 局部变量
    public int sum( int a,int b){
        System.out.println("power:"+power);
        System.out.println("price"+price);
        System.out.println(name);
        System.out.println();
        int c=a+b;
        return c;
    }
    public int sub(int x,int y){
        System.out.println(name);
        int z=x-y;
        return z;
    }
    public int muty(int a,int b){
        int c=a*b;
        return c;
    }
}
